# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: readcsv.py
Author: kij
Create Date: 2021/3/8
-------------------------------------------------
"""
import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
import sys

sys.path.append(BASE_DIR)


def read_file():
	with open(os.path.join(BASE_DIR, "files", "hero.csv"), mode='r', encoding='utf-8') as file_object:
		for line in file_object:
			result = line.split("|")
			print(len(result))

read_file()